home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0191.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1009 b   |  24 lines

  1. >I have written a program in Amos which involves a `laser beam`
  2. >being fired from one part of the screen to another.
  3. >To do this I just work out dy and dx ( one of these values
  4. >will be 1) and add them to the original points until the
  5. >destination is reached or it hits something.
  6. >
  7. >It works fine when run through the editor, yet when compiled...
  8. >does not. Why???  I use real numbers for dx and dy - maybe
  9. >the compiler cannot deal with these or something?
  10. >The beam does not go in the right direction at all.
  11. >
  12. >Has anyone got a list of inconsistencies in compiler/interpreter
  13. >operation? This is driving me up the wall.
  14.  
  15.   I was going to say "sounds like the old division bug" before I noticed
  16. that you're using floating point numbers.  Try using Set Double Precision,
  17. or stop using it if you already are - I recall that one or the other had
  18. problems in the compiler.
  19.  
  20.   --Andy Church (achurch@goober.mbhs.edu)
  21.     WWW: http://www.mbhs.edu/~achurch/
  22.     AMOS Web Site: http://www.mbhs.edu/~achurch/amos/
  23.  
  24.